import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 添加elementplus iron
import ElementPlus from 'element-plus'
// 引入跑马灯组件
import Vue3Marquee from 'vue3-marquee'
import 'vue3-marquee/dist/style.css'
import BScroll from "better-scroll";
import 'element-plus/dist/index.css'
import { Button } from 'vant';
import 'vant/lib/index.css';
// Toast
import { showToast } from 'vant';
import 'vant/es/toast/style';
import {
  Skeleton,
  SkeletonTitle,
  SkeletonImage,
  SkeletonAvatar,
  SkeletonParagraph,
} from 'vant';
// Dialog
import { showDialog } from 'vant';
import 'vant/es/dialog/style';

// Notify
import { showNotify } from 'vant';
import 'vant/es/notify/style';

// ImagePreview
import { showImagePreview } from 'vant';
import 'vant/es/image-preview/style';

// import msgBox from './plugin/vue-msgbox'
import axios from 'axios';
import VueAxios from 'vue-axios'

createApp(App).use(VueAxios,axios).use(store).use(Skeleton).use(SkeletonTitle).use(SkeletonImage).use(SkeletonAvatar).use(SkeletonParagraph).use(Button).use(router).use(ElementPlus).use(Vue3Marquee).mount('#app')
const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
createApp(App).use(store).use(router).use(ElementPlus).mount('#app')